<!DOCTYPE html>
<html class="x-admin-sm" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8">
        <title>服务管理控制台</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" th:href="@{/public/plugins/xadmin/css/font.css}">
        <link rel="stylesheet" th:href="@{/public/plugins/xadmin/css/xadmin.css}">
        <script th:src="@{/public/plugins/xadmin/lib/layui/layui.js}"></script>
        <script th:src="@{/public/plugins/xadmin/js/xadmin.js}"></script>
        <script th:inline="javascript">
            var contextRoot = /*[[@{/}]]*/ '';
        </script>
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <blockquote class="layui-elem-quote">欢迎管理员：
                                <span class="x-red">admin</span>！当前时间:<span id="time"></span>
                                <a class="layui-btn layui-btn-small" style="line-height:1.6em;float:right" onclick="location.reload()" title="刷新">
                                    <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
                                </a>
                            </blockquote>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-card">
                        <div class="layui-card-header">网关信息
                            <div style="float: right">
                                <button type="button" id="log" class="layui-btn layui-btn-sm layui-btn-primary">
                                    <i class="layui-icon">&#xe629;</i> 访问日志
                                </button> <button type="button" id="monitor" class="layui-btn layui-btn-sm layui-btn-primary">
                                    <i class="layui-icon">&#xe629;</i> 实时监控
                                </button>
                            </div>
                        </div>
                        <div class="layui-card-body ">
                            <table class="layui-table" id="gateway">
                                <tbody>
                                    <tr>
                                        <th style="width: 200px">名称</th>
                                        <td name="name"></td></tr>
                                    <tr>
                                        <th>地址</th>
                                        <td name="url"></td></tr>
                                    <tr>
                                        <th>版本号</th>
                                        <td name="version"></td></tr>
                                    <tr>
                                        <th>运行时间</th>
                                        <td name="serverUptime"></td></tr>
                                    <tr>
                                        <th>CPU的个数</th>
                                        <td name="numOfCpus"></td></tr>
                                    <tr>
                                        <th>总共可用的内存</th>
                                        <td name="totalAvailMemory"></td></tr>
                                    <tr>
                                        <th>当前已经使用内存的百分比</th>
                                        <td name="currentMemoryUsage"></td></tr>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-card">
                        <div class="layui-card-header">注册中心</div>
                        <div class="layui-card-body ">
                            <table class="layui-table" id="eureka">
                                <tbody>
                                <tr>
                                    <th style="width: 200px">名称</th>
                                    <td name="name"></td></tr>
                                <tr>
                                    <th>地址</th>
                                    <td name="url"></td></tr>
                                <tr>
                                    <th>版本号</th>
                                    <td name="version"></td></tr>
                                <tr>
                                    <th>运行时间</th>
                                    <td name="serverUptime"></td></tr>
                                <tr>
                                    <th>CPU的个数</th>
                                    <td name="numOfCpus"></td></tr>
                                <tr>
                                    <th>总共可用的内存</th>
                                    <td name="totalAvailMemory"></td></tr>
                                <tr>
                                    <th>当前已经使用内存的百分比</th>
                                    <td name="currentMemoryUsage"></td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">开发团队</div>
                        <div class="layui-card-body ">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th>版权所有</th>
                                        <td>huzhp
                                            </td>
                                    </tr>
                                    <tr>
                                        <th>开发者</th>
                                        <td>胡章平(352048626@qq.com)</td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <style id="welcome_style"></style>
                <div class="layui-col-md12">
                    <blockquote class="layui-elem-quote layui-quote-nm">本系统由胡章平提供技术支持。</blockquote></div>
            </div>
        </div>
        </div>
    </body>
    <script th:src="@{/js/welcome.js}"></script>

</html>